<%@page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html lang="zh-CN">
	<head>
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<meta name="renderer" content="webkit">
		<meta name="applicable-device" content="pc,mobile">
    <title>文章管理</title>
    <!-- 使用load标签加载资源文件 -->
    <link rel="stylesheet" type="text/css" href="./assets/css/bootstrap.min.css">
    <script type="text/javascript" src="./assets/js/jquery-3.3.1.min.js"></script>
    <script type="text/javascript" src="./assets/js/bootstrap.min.js"></script>
</head>
<body>
<div class="container">
    <jsp:include page="header2.jsp"></jsp:include>
    <div class="row">
        <div class="col-md-2 text-center">
            <!-- 左侧菜单 -->
            <!-- 左侧4列 -->
            <!-- 非超级管理员是不允许进行系统管理操作的 -->
            <ul class="nav nav-pills nav-stacked">
                <li class="nav-header h3">系统管理</li>
                <li>
                    <a href="sitesettings.html"><span class="glyphicon glyphicon-cog"></span>&nbsp;网站管理</a>
                </li>
            </ul>
            <ul class="nav nav-pills nav-stacked">
                <li class="nav-header h3">用户管理</li>
                <li><a href="userlist.html"><span class="glyphicon glyphicon-user"></span>&nbsp;用户列表</a></li>
            </ul>
            <ul class="nav nav-pills nav-stacked">
                <li class="nav-header h3">文章管理</li>
                <li><a href="categorylist.html"><span class="glyphicon glyphicon-lock"></span>&nbsp;分类管理</a></li>
                <li><a href="articlelist.html"><span class="glyphicon glyphicon-list-alt"></span>&nbsp;文章管理</a></li>
            </ul>
        </div>
        <!-- 右侧功能区 -->
        <div class="col-md-10">
            <!-- 用户自定义区块 -->
            <h4 class="text-success text-center">文章管理</h4>

            <table class="table table-striped table-hover text-center">
                <tbody>
                <tr>
                    <td>ID</td>
                    <td>标题</td>
                    <td>栏目</td>
                    <td>作者</td>
                    <td>阅读量</td>
                    <td>创建时间</td>
                    <td colspan="2">操作</td>
                </tr>
                <tr>
                    <td>17</td>
                    <td class="text-left">PHP与Ajax操作</td>
                    <td>PHP</td>

                    <td>admin</td>
                    <td>6</td>
                    <td>1517470513</td>

                    <td><a href="articleEdit.html">编辑</a></td>
                    <td><a href="articleList.html" onclick="remove(17);return false;">删除</a></td>
                </tr>
                <tr>
                    <td>18</td>
                    <td class="text-left">自己动手写框架教程</td>
                    <td>PHP</td>

                    <td>peter</td>
                    <td>4</td>
                    <td>1517470568</td>

                    <td><a href="articleEdit.html">编辑</a></td>
                    <td><a href="articleList.html" onclick="remove(18);return false;">删除</a></td>
                </tr>
                <tr>
                    <td>19</td>
                    <td class="text-left">PHP模糊查询技术</td>
                    <td>MySQL</td>

                    <td>admin</td>
                    <td>1</td>
                    <td>1517470648</td>

                    <td><a href="articleEdit.html">编辑</a></td>
                    <td><a href="articleList.html" onclick="remove(19);return false;">删除</a></td>
                </tr>
                <tr>
                    <td>20</td>
                    <td class="text-left">ThinkPHP5企业站点开发指南</td>
                    <td>ThinkPHP</td>

                    <td>admin</td>
                    <td>3</td>
                    <td>1517470769</td>

                    <td><a href="articleEdit.html">编辑</a></td>
                    <td><a href="articleList.html" onclick="remove(20);return false;">删除</a></td>
                </tr>
                <tr>
                    <td>21</td>
                    <td class="text-left">ThinkPHP5经典视频教程</td>
                    <td>ThinkPHP</td>

                    <td>admin</td>
                    <td>1</td>
                    <td>1517470868</td>

                    <td><a href="articleEdit.html">编辑</a></td>
                    <td><a href="articleList.html" onclick="remove(21);return false;">删除</a></td>
                </tr>
                </tbody>
            </table>

            <!-- 显示分页条 -->
            <div class="text-center">
                <ul class="pagination">
                    <li class="disabled"><span>«</span></li>
                    <li class="active"><span>1</span></li>
                    <li><a href="categoryList.html?p=2">2</a></li>
                    <li><a href="categoryList.html?p=3">3</a></li>
                    <li><a href="categoryList.html?p=4">4</a></li>
                    <li><a href="categoryList.html?p=5">5</a></li>
                    <li><a href="categoryList.html?p=6">6</a></li>
                    <li><a href="categoryList.html?p=2">»</a></li>
                </ul>
            </div>


            <script>
                function remove(id) {
                    if (confirm('您真的要删除吗?') == true) {
                        window.location.href = "articleList.html" + "?id=" + id;
                    }
                }
            </script>
        </div>
    </div>
</div>
</body>
</html>